#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMouseEvent>
#include <QStatusBar>
#include "Imshow_frame.h"
#include "setting.h"


namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(int height,int width,bool mod,QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_leftload_clicked();
    void display_fun();

    void on_pushButton_clicked();

    void on_rightload_clicked();

    void on_leftclear_clicked();

    void on_rightclear_clicked();

    void on_onlyload_clicked();

    void on_onlyclear_clicked();

    void on_Go_button_clicked();

private:
    Ui::MainWindow *ui;
    QStatusBar* m_pstatus;
    Imshow_frame* img_left;
    Imshow_frame* img_right;
    Imshow_frame* img_only;
    QTimer* timer;
    //QTimer* timer2;
    void Mainwindow_init_ii(int width,int height);
    void Mainwindow_init_i(int width,int height);
};

#endif // MAINWINDOW_H
